home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / public_notice < prev    next >
Encoding:
Text File  |  2001-03-21  |  609 b   |  26 lines

  1. Synopsis:
  2.    on [<modes>]public_notice [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever a NOTICE is sent to any channel the
  6.    client is on from someone not actually on that channel.
  7.  
  8. Parameters:
  9.    $0    nickname sending message
  10.    $1    channel sent to
  11.    $2-   text of message
  12.  
  13. Examples:
  14.    To distinguish NOTICEs sent to the current channel vs. other channels:
  15.       on ^public_notice "*" {
  16.          if ( [$1] == C ) {
  17.             echo +$0+ $2-
  18.          } {
  19.             echo +$0:$1+ $2-
  20.          }
  21.       }
  22.  
  23. See Also:
  24.    notice(1); on(5) notice
  25.  
  26.